package com.woniu.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * jp_malfunction
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class JpMalfunction implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //"故障类型"
    private String malid;

    //故障类型"
    private String type;

    //"故障描述"
    private String describes;

    //"故障报告人ID(工作人员ID)")
    @TableField("bgrID")
    private Long bgrID;

    //"故障报告用户ID"
    @TableField("userID")
    private Long userID;

    //"医院ID"
    @TableField("hospitalID")
    private Integer hospitalID;

    //"故障标题"
    private String title;

    //"科室ID"
    @TableField("departID")
    private Integer departID;

    //"床位ID"
    @TableField("bedID")
    private Integer bedID;

    //"故障来源 0 医院对接人 1科室对接人"
    private String froms;

    //"申报人手机号"
    private String phone;

    //"1.已备案、2.修复中、3.已修复、4.无法修复"
    private String statue;

    //"故障备案时间"
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    //"订单id"
    @TableField("rentID")
    private Integer rentID;
    //"故障是否可用"
    private Integer status;

}